projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8929321
)
iconfactory: Initialize varibale to NULL in failure path
author
Benjamin Otte
<otte@redhat.com>
Thu, 9 Sep 2010 21:09:07 +0000
(23:09 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 26 Sep 2010 13:11:42 +0000
(15:11 +0200)
Otherwise we use random memory and that is not good.
gtk/gtkiconfactory.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconfactory.c
b/gtk/gtkiconfactory.c
index 4f854d8395a9a121a7ae99e8009a430be211a2ed..92fea101198dfeedad66e66712a2f1522d490e06 100644
(file)
--- a/
gtk/gtkiconfactory.c
+++ b/
gtk/gtkiconfactory.c
@@
-1463,6
+1463,8
@@
render_icon_name_pixbuf (GtkIconSource *icon_source,
tmp_pixbuf = gtk_icon_info_load_icon (info, &error);
gtk_icon_info_free (info);
}
+ else
+ tmp_pixbuf = NULL;
}
else
{